package com.ywfStudy.ywfliving.commodity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ywfStudy.common.utils.PageUtils;
import com.ywfStudy.ywfliving.commodity.entity.SpuInfoEntity;
import com.ywfStudy.ywfliving.commodity.vo.SpuSaveVO;

import java.util.Map;

/**
 * 商品 spu 信息
 *
 * @author ywf
 * @email 993530928@qq.com
 * @date 2023-04-18 12:59:33
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveSpuInfo(SpuSaveVO spuSaveVO);

    void saveBaseSpuInfo(SpuInfoEntity spuInfoEntity);

    //通过携带的检索条件,进行分页查询
    PageUtils queryPageByCondition(Map<String,Object> params);

    //商品spu上架
    void up(Long spuId);
    //商品spu下架
    void down(Long spuId);
}

